package controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import service.SysMenusService;
import util.Result;

import javax.annotation.Resource;

@RestController
@CrossOrigin
@RequestMapping("/menu")
public class SysMenusController {
    @Resource
    private SysMenusService service;

    @RequestMapping("/getMenu.do")
    public Object getMenu(Long userId){
        return new Result<>("0","",service.getMenu(userId));
    }
}
